package app

const (
	SALT = "nnnchain"

	// user type
	USER_TYPE_ADMIN     = "admin"
	USER_TYPE_PERSONNEL = "personnel"
	USER_TYPE_USER      = "user"

	// user status
	USER_STATUS_UNINITIALIZED = "uninitialized"
	USER_STATUS_NORMAL        = "normal"
	USER_STATUS_LIMITED       = "limited"
	USER_STATUS_FORBIDDEN     = "forbidden"
	USER_STATUS_DELETED       = "deleted"

	IS_N = "N"
	IS_Y = "Y"

	TASK_STATUS_UNDO    = "undo"
	TASK_STATUS_DOING   = "doing"
	TASK_STATUS_DONE    = "done"
	TASK_STATUS_TIMEOUT = "timeout"
	TASK_STATUS_FAILED  = "failed"
)

var (
	set_y_n         = []string{IS_N, IS_Y}
	user_status_set = []string{USER_STATUS_UNINITIALIZED, USER_STATUS_NORMAL, USER_STATUS_LIMITED, USER_STATUS_FORBIDDEN, USER_STATUS_DELETED}
	user_type_set   = []string{USER_TYPE_ADMIN, USER_TYPE_PERSONNEL, USER_TYPE_USER}
)
